package com.matrix.java.chap_05.exercise;

import java.util.Scanner;

public class EX5_10 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int num, sum = 0, count;
        for (count = 0; count < 5; count++) {
            num = input.nextInt();
            sum += num;
        }
        System.out.println("sum is " + sum);
        System.out.println("count is " + count);

    }
}
